package com.reebake.ideal.crypto.core;

import com.reebake.ideal.crypto.entity.SecretKeyEntity;

/**
 * 密钥服务
 */
public interface SecretKeyService {

    /**
     * 获取全局RSA密钥
     * @return 密钥
     */
    public SecretKeyEntity queryRsa();

    /**
     * 根据appKey查询密钥
     * @param appKey appKey
     * @return 密钥
     */
    public SecretKeyEntity queryByAppKey(String appKey);

}
